import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule, Routes} from "@angular/router";
import {SingleStatisticsComponent} from "./single-statistics/single-statistics.component";
import {StatisticsListComponent} from "./statistics-list/statistics-list.component";
import {OrderRecordComponent} from "./order-record/order-record.component";
import {TodayCoutnComponent} from "./today-coutn/today-coutn.component";
import {DishesCountComponent} from "./dishes-count/dishes-count.component";
import {PayCountComponent} from "./pay-count/pay-count.component";
import {WaiterCountComponent} from "./waiter-count/waiter-count.component";
import {CardCountComponent} from "./card-count/card-count.component";
let statisticsRouting: Routes = [
  {path: '', redirectTo: 'statistics-list', pathMatch: 'full'}
  , {path: 'statistics-list', component: StatisticsListComponent} // 统计列表展示
  , {path: 'single-statistics', component: SingleStatisticsComponent} // 个人下单统计
  , {path: 'order-record', component: OrderRecordComponent} // 个人下单统计
  , {path: 'today-count', component: TodayCoutnComponent} // 日结统计台
  , {path: 'dishes-count', component: DishesCountComponent} // 菜品销售统计
  , {path: 'pay-count', component: PayCountComponent} // 支付方式统计
  , {path: 'card-count', component: CardCountComponent} // 会员卡统计
  , {path: 'waiter-count', component: WaiterCountComponent} // 服务生点单统计统计
];
@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(statisticsRouting)
  ],
  declarations: [
  ],
  exports: [RouterModule]
})
export class StatisticsRoutingModule {
}
